<%@ page import="com.wzy.Jdbc封装.pojo.News_detail" %>
<jsp:useBean id="detail" class="com.wzy.level.detail.detailDaoImpl.detailDaoImpl"/>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--    <%--%>
<%--        int id = Integer.parseInt(request.getParameter("id"));--%>
<%--        News_detail detail1 = new News_detail();--%>
<%--        detail1.setId(id);--%>
<%--        int i = detail.deleteById(detail1);--%>
<%--        request.setAttribute("rows",i);--%>

<%--    %>--%>
<%--        <c:if test="${rows > 0}">--%>
<%--            <% response.sendRedirect(request.getContextPath()+"/detail.jsp");%>--%>
<%--        </c:if>--%>

<%--        <c:if test="${rows > 0}">--%>
<%--            <c:out value="删除失败"></c:out>--%>
<%--        </c:if>--%>

</body>
</html>
